<template>
  <div class="recommend">
    <div class="recommend-item" v-for="(item,index) of recommends" :key="index">
      <img :src="item.image">
      <div>{{item.title}}</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "RecommendView",
    props: {
      recommends: {
        type: Array,
        default: () => {
          return [];
        }
      }
    }
  }
</script>

<style scoped>
  .recommend {
    display: flex;
    border-bottom: 10px solid #f8f8ff;
    font-size: 12px;
    padding-bottom: 20px;
  }

  .recommend-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .recommend-item img {
    width: 75px;
    height: 75px;
    margin-top: 20px;
    margin-bottom: 12px;
  }


</style>
